"""
@File: client.py
@Project: 约个球
@Author: zhangjian
@Time: 2022.8.27 16:39
@Description: None
"""
import requests
from hashlib import md5
import time


salt = "xxyy"
appid = "apptest"
secretkey = "123456"
timestamp = time.time()
user_sign = appid + salt + secretkey + str(timestamp)
m1 = md5()
m1.update(user_sign.encode(encoding="utf-8"))
sign = m1.hexdigest()
url = f"http://127.0.0.1:9000/v1/monitor?appid={appid}&salt={salt}&sign={sign}&timestamp={timestamp}"
# 发送get请求
response = requests.get(url)
print(response.text)
